/* 插画详情页面样式 */
.illustration-detail {
  height: 100vh;
  background: #f8fafc;
  overflow-y: scroll;
  padding-bottom: 100px;
}

/* 面包屑导航样式 */
.breadcrumb-section {
  background: #ffffff;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.category-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.header-info {
  flex: 1;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.category-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.category-stats {
  display: flex;
  gap: 30px;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.stats-value {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.illustrations-section {
  padding: 40px 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.illustration-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.illustration-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.illustration-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.illustration-card:hover .illustration-actions {
  opacity: 1;
}

.illustration-actions .ant-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.illustration-actions .ant-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
}

.illustration-image {
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.illustration-card:hover .illustration-image img {
  transform: scale(1.05);
}

/* 插画信息样式 */
.illustration-info {
  padding: 16px;
  position: relative;
}

.illustration-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1a202c;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.illustration-meta {
  font-size: 0.85rem;
  color: #718096;
  margin: 0;
  line-height: 1.4;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

/* 分页样式 */
.pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* 预览弹窗样式 */
.preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 500px;
}

.preview-image {
  max-width: 100%;
  max-height: 70vh;
  min-width: 500px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  margin-bottom: 20px;
}

.preview-info {
  text-align: left;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
}

.preview-info p {
  margin: 8px 0;
  color: #4a5568;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .illustrations-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .category-header {
    padding: 30px 20px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .category-description {
    font-size: 1rem;
  }

  .category-stats {
    gap: 20px;
  }

  .illustrations-section {
    padding: 30px 15px;
  }

  .illustrations-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .illustration-image {
    height: 190px;
  }

  .illustration-info {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 1.5rem;
  }

  .illustrations-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .illustration-image {
    height: 170px;
  }

  .illustration-title {
    font-size: 0.9rem;
  }

  .illustration-meta {
    font-size: 0.8rem;
  }
}

/* 操作菜单样式 */
.illustration-menu {
  position: absolute;
  bottom: 12px;
  right: 12px;
}
